package cn.zhentao.charge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.zhentao.charge.mapper.ChargeCarCityPrefixMapper;
import cn.zhentao.charge.domain.ChargeCarCityPrefix;
import cn.zhentao.charge.service.IChargeCarCityPrefixService;

/**
 * 车辆省市前缀Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class ChargeCarCityPrefixServiceImpl implements IChargeCarCityPrefixService 
{
    @Autowired
    private ChargeCarCityPrefixMapper chargeCarCityPrefixMapper;

    /**
     * 查询车辆省市前缀
     * 
     * @param id 车辆省市前缀主键
     * @return 车辆省市前缀
     */
    @Override
    public ChargeCarCityPrefix selectChargeCarCityPrefixById(Integer id)
    {
        return chargeCarCityPrefixMapper.selectChargeCarCityPrefixById(id);
    }

    /**
     * 查询车辆省市前缀列表
     * 
     * @param chargeCarCityPrefix 车辆省市前缀
     * @return 车辆省市前缀
     */
    @Override
    public List<ChargeCarCityPrefix> selectChargeCarCityPrefixList(ChargeCarCityPrefix chargeCarCityPrefix)
    {
        return chargeCarCityPrefixMapper.selectChargeCarCityPrefixList(chargeCarCityPrefix);
    }

    /**
     * 新增车辆省市前缀
     * 
     * @param chargeCarCityPrefix 车辆省市前缀
     * @return 结果
     */
    @Override
    public int insertChargeCarCityPrefix(ChargeCarCityPrefix chargeCarCityPrefix)
    {
        return chargeCarCityPrefixMapper.insertChargeCarCityPrefix(chargeCarCityPrefix);
    }

    /**
     * 修改车辆省市前缀
     * 
     * @param chargeCarCityPrefix 车辆省市前缀
     * @return 结果
     */
    @Override
    public int updateChargeCarCityPrefix(ChargeCarCityPrefix chargeCarCityPrefix)
    {
        return chargeCarCityPrefixMapper.updateChargeCarCityPrefix(chargeCarCityPrefix);
    }

    /**
     * 批量删除车辆省市前缀
     * 
     * @param ids 需要删除的车辆省市前缀主键
     * @return 结果
     */
    @Override
    public int deleteChargeCarCityPrefixByIds(Integer[] ids)
    {
        return chargeCarCityPrefixMapper.deleteChargeCarCityPrefixByIds(ids);
    }

    /**
     * 删除车辆省市前缀信息
     * 
     * @param id 车辆省市前缀主键
     * @return 结果
     */
    @Override
    public int deleteChargeCarCityPrefixById(Integer id)
    {
        return chargeCarCityPrefixMapper.deleteChargeCarCityPrefixById(id);
    }
}
